<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
    <h1>登出成功</h1>
    <h2 id="time">3</h2>
</body>
<script>
    $(function (){
        var time = 3;
        var timer = setInterval(function (){
            time--;
            $('#time').text(time)
            if(time==0){
                clearInterval(timer);
                window.location = "http://localhost/html/login.html"
            }
        },1000)
    })
</script>
</html>